summaryrefslogtreecommitdiffstats
path: root/reversing_tools/abbott/extract_freestyle.py
diff options
context:
space:
mode:
Diffstat (limited to 'reversing_tools/abbott/extract_freestyle.py')
-rwxr-xr-xreversing_tools/abbott/extract_freestyle.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/reversing_tools/abbott/extract_freestyle.py b/reversing_tools/abbott/extract_freestyle.py
index 8e1c0d2..0f21d88 100755
--- a/reversing_tools/abbott/extract_freestyle.py
+++ b/reversing_tools/abbott/extract_freestyle.py
@@ -170,8 +170,9 @@ def main():
message = packet.payload[1:]
else:
message_length = packet.payload[1]
+ message_end_idx = 2 + message_length
message_type = f" {message_type:02x}"
- message = packet.payload[2 : 2 + message_length]
+ message = packet.payload[2:message_end_idx]
print(
usbmon.chatter.dump_bytes(